package com.site.war.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.site.common.annotation.Excel;
import com.site.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 检验书管理
对象 site_inspect
 *
 * @author site
 * @date 2023-10-16
 */
public class SiteInspect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 工地编号 */
    @Excel(name = "工地编号")
    private String siteNumber;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stopTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String url;

    //文件名称
    private String fileName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSiteNumber(String siteNumber)
    {
        this.siteNumber = siteNumber;
    }

    public String getSiteNumber()
    {
        return siteNumber;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setStopTime(Date stopTime)
    {
        this.stopTime = stopTime;
    }

    public Date getStopTime()
    {
        return stopTime;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("siteNumber", getSiteNumber())
            .append("startTime", getStartTime())
            .append("stopTime", getStopTime())
            .append("url", getUrl())
            .append("fileName", getFileName())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .toString();
    }
}
